# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=hwdetect
pkgver=2023.07.02
pkgrel=1
pkgdesc="Hardware detection script with loading modules and mkinitcpio.conf"
arch=(any)
url="https://archlinux.org/packages/extra/any/hwdetect/"
license=('GPL')
depends=('sh' 'awk' 'grep' 'coreutils' 'sed' 'e2fsprogs' 'gzip')
optdepends=('cryptsetup: for encrypt mkinitcpio config support'
            'lvm2:       for lvm2 mkinitcpio config support'
            'mdadm:      for raid mkinitcpio config support')
source=(hwdetect)
sha512sums=('36b7549936f74f6e6e5b6ed84277047cef594116ad89ab93dbc1c91c2433866d1b5e942b605660756e796d5188421e8ff918f4e39c5c26c90cf32ee70f0655b6')

package() {
  install -D -m 755 "${srcdir}/hwdetect" "${pkgdir}/usr/bin/hwdetect"
}
